package com.lhc.project2;
/*
 * 设置客户类
 */
public class Customer {
	private int id;
	private String name;
	private char gender;
	private int age;
	private String phone;
	private String email;
	public int getId() {
		return id;
	}
	public void setId(int id) {
		this.id = id;
	}
	public String getName() {
		return name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public char getGender() {
		return gender;
	}
	public void setGender(char gender) {
		this.gender = gender;
	}
	public int getAge() {
		return age;
	}
	public void setAge(int age) {
		this.age = age;
	}
	public String getPhone() {
		return phone;
	}
	public void setPhone(String phone) {
		this.phone = phone;
	}
	public String getEmail() {
		return email;
	}
	public void setEmail(String email) {
		this.email = email;
	}
	
	private static int num = 1;
	
	//定义一个静态变量，用于存放保存客户的编号
	public static int getNum() {
		return num;
	}
	public static void setNum(int num) {
		Customer.num = num;
	}
	
	public Customer( String name, char gender, int age, String phone, String email) {
		super();
		this.id = num++;
		this.name = name;
		this.gender = gender;
		this.age = age;
		this.phone = phone;
		this.email = email;
	}
	
	public Customer() {
		this.id = num++;
	}
	
}
